package com.huika.dealontop.control.base.extend.impl;

import com.huika.dealontop.control.base.extend.BaseViewHolder;
import com.huika.dealontop.control.base.extend.RequestProtocol;
import com.huika.dealontop.support.http.RequestResult;

import java.util.List;

/**
 * Author: Victor Wu
 * Email: victor-wu*foxmail.com
 * Time: 2015/11/13 16:27
 * Description: TODO
 */
public interface ILoadableListProvider<T, E> {

    boolean needToLoadMore();

    int getPageSize();

    List<E> getListData(T requestResult);

    BaseViewHolder<E> getItemViewHolder(int position);

    RequestProtocol onLoadMoreData();

}
